package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    /*
    * 新增购物车
    * */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);
    /*
    * 查询购物车
    * */
    List<ShoppingCart> list();

    void clean();
    /**
     * 删除购物车中一个商品
     * @param shoppingCartDTO
     */
    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);

}
